<%@ page contentType="application/xhtml+xml; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/my.tld" prefix="my" %>
<%@ taglib uri="/WEB-INF/tld/user.tld" prefix="user" %>

<c:set var="cuser" value="${user:user(userId)}"/>
<c:if test="${empty cuser}">
<div class="nav"><a href="${root}user.do${p1}&amp;do=Reg.auto"><span class="act">现在注册</span></a> <span class="ziti">有机会赢取万元礼包</span></div>
</c:if>
<c:if test="${not empty cuser}">
<div class="nav"><span class="ziti">欢迎您</span> <a href="${root}portal.do${p1}&amp;do=Portal.my"><span class="act">${my:txt(cuser.nickname)}</span></a>   <a href="${root}portal.do${p1}&amp;do=Portal.my"><span class="act">空间|</span></a><a href="${root}user.do${p1}&amp;do=User.setting"><span class="act">设置</span></a></div>
</c:if>
<c:import url="/WEB-INF/tpl/_include/_msg.jsp" />
<div class="logo">
<table>
<tr>
<td width="70px">${my:img('logo.png')}</td>
<td><span class="bold">传递最实惠的信息</span><br />
<c:if test="${empty cuser}">
<a href="${root}portal.do${p1}&amp;do=Portal.login" class="black">登录</a>|<a href="${root}user.do${p1}&amp;do=Reg.aa" class="black">注册</a>|<a href="${root}user.do${p1}&amp;do=Profile.password" class="black">找回密码</a><br />
</c:if>
<c:if test="${not empty cuser}">
<c:set var="sc" value="${my:city(cuser.city)}"/>
<span class="red">城市:<c:if test="${empty sc}">全国</c:if><c:if test="${not empty sc}">${my:txt(sc.name)}</c:if></span><span class="ls">(<a href="${root}user.do${p1}&amp;do=User.provinces">更改</a>)</span>
</c:if>
</td>
</tr>
</table>
</div>

<table class="tabs">
	<tr>
	<td class="black"><a href="${basehost}portal.do${p1}&amp;do=Portal.layout">首页</a></td>
	<c:if test="${param.do eq 'Activity.cmcc'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.cmcc">移动</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.cmcc'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.cmcc">移动</a></td>
	</c:if>
	
	<c:if test="${param.do eq 'Activity.unicom'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.unicom">联通</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.unicom'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.unicom">联通</a></td>
	</c:if>
	
	<c:if test="${param.do eq 'Activity.broadband'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.broadband">宽带</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.broadband'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.broadband">宽带</a></td>
	</c:if>
	</tr>
	<tr>
	<c:if test="${param.do eq 'Activity.bank'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.bank">银行</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.bank'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.bank">银行</a></td>
	</c:if>
	
	<c:if test="${param.do eq 'Activity.net'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">网站</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.net'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">网站</a></td>
	</c:if>
	
	<c:if test="${param.do eq 'Activity.previous'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">往期</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.previous'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">往期</a></td>
	</c:if>
	
	<c:if test="${param.do eq 'Activity.search'}">
	<th class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">搜索</a></th>
	</c:if>
	<c:if test="${param.do ne 'Activity.search'}">
	<td class="black"><a href="${basehost}activity.do${p1}&amp;do=Activity.net">搜索</a></td>
	</c:if>
	</tr>
</table>
